package diamondServer.resources;

public class ServiceFake
	implements Service
{
	public ServiceFake()
	{	}

	@Override
	public boolean equals(Object obj)
	{
		return obj instanceof ServiceFake;
	}
	
	@Override
	public void provide(Message msg)
	{
		@SuppressWarnings("unused")
		Message a = new MessageFake(); //for class loader testing
		
		if (msg instanceof MessageFake)
			System.out.println(((MessageFake) msg).getBody());
		else 
			throw new IllegalArgumentException(
					"Must get MessageFake as an argument");
	}
	
}
